from django.views import View
from django.shortcuts import  HttpResponse
from saas.utils.tencent.sms import send_sms_single
import  random
class SmsView(View):

    def get(self,request):
        code=random.randrange(1000,9999)
        res=send_sms_single('13717565305',1352280,[code,])

        print(res)
        return HttpResponse(code)